package com.hnchances.manager.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hnchances.common.annotation.Excel;
import com.hnchances.common.core.domain.BaseEntity;

/**
 * 用户管理对象 user
 * 
 * @author wth
 * @date 2024-11-05
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id自增，key */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 密码，md5 */
    private String passWord;

    /** 电话号码11位 */
    @Excel(name = "电话号码11位")
    private String phone;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String trueName;

    /** 0-学生，1-老师，2-领导或管理（可看所有班级） */
    @Excel(name = "0-学生，1-老师，2-领导或管理", readConverterExp = "可=看所有班级")
    private Integer identity;

    /** 班级关联ID */
    @Excel(name = "班级关联ID")
    private Integer classID;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Integer courseID;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Integer studentID;

    /** 注册日期 */
    private Date creatDateTime;

    /** 修改日期 */
    private Date updateDateTime;

    /** 最后登录时间 */
    private Date lastLoginDateTime;

    /** ipv4 */
    private String loginIP;

    /** 修改人ID */
    private Long updateByID;

    /** 0-正常，1-删除 */
    @Excel(name = "0-正常，1-删除")
    private Integer status;

    /** 0-未审核,1-审核 */
    @Excel(name = "0-未审核,1-审核")
    private Integer verify;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassWord(String passWord) 
    {
        this.passWord = passWord;
    }

    public String getPassWord() 
    {
        return passWord;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setTrueName(String trueName) 
    {
        this.trueName = trueName;
    }

    public String getTrueName() 
    {
        return trueName;
    }
    public void setIdentity(Integer identity) 
    {
        this.identity = identity;
    }

    public Integer getIdentity() 
    {
        return identity;
    }
    public void setClassID(Integer classID) 
    {
        this.classID = classID;
    }

    public Integer getClassID() 
    {
        return classID;
    }
    public void setCourseID(Integer courseID) 
    {
        this.courseID = courseID;
    }

    public Integer getCourseID() 
    {
        return courseID;
    }
    public void setStudentID(Integer studentID) 
    {
        this.studentID = studentID;
    }

    public Integer getStudentID() 
    {
        return studentID;
    }
    public void setCreatDateTime(Date creatDateTime) 
    {
        this.creatDateTime = creatDateTime;
    }

    public Date getCreatDateTime() 
    {
        return creatDateTime;
    }
    public void setUpdateDateTime(Date updateDateTime) 
    {
        this.updateDateTime = updateDateTime;
    }

    public Date getUpdateDateTime() 
    {
        return updateDateTime;
    }
    public void setLastLoginDateTime(Date lastLoginDateTime) 
    {
        this.lastLoginDateTime = lastLoginDateTime;
    }

    public Date getLastLoginDateTime() 
    {
        return lastLoginDateTime;
    }
    public void setLoginIP(String loginIP) 
    {
        this.loginIP = loginIP;
    }

    public String getLoginIP() 
    {
        return loginIP;
    }
    public void setUpdateByID(Long updateByID) 
    {
        this.updateByID = updateByID;
    }

    public Long getUpdateByID() 
    {
        return updateByID;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setVerify(Integer verify) 
    {
        this.verify = verify;
    }

    public Integer getVerify() 
    {
        return verify;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("passWord", getPassWord())
            .append("phone", getPhone())
            .append("trueName", getTrueName())
            .append("identity", getIdentity())
            .append("classID", getClassID())
            .append("courseID", getCourseID())
            .append("studentID", getStudentID())
            .append("creatDateTime", getCreatDateTime())
            .append("updateDateTime", getUpdateDateTime())
            .append("lastLoginDateTime", getLastLoginDateTime())
            .append("loginIP", getLoginIP())
            .append("updateByID", getUpdateByID())
            .append("status", getStatus())
            .append("verify", getVerify())
            .toString();
    }
}
